/**
 * Copyright &copy; 2016-2017 <a href="https://www.lczyfz.com">联创智云</a> All rights reserved.
 */
package com.lczyfz.campusinfo.modules.campusinfoexam.entity;

import org.hibernate.validator.constraints.Length;
import com.lczyfz.campusinfo.modules.sys.entity.User;

import com.lczyfz.campusinfo.common.persistence.DataEntity;

/**
 * 公务员考试报名Entity
 * @author zms
 * @version 2018-04-18
 */
public class CampusinfoServant extends DataEntity<CampusinfoServant> {
	
	private static final long serialVersionUID = 1L;
	private String servantId;		// 考试ID
	private String payment;		// 考试费用
	private String paymentMethod;		// 支付方式
	private String status;		// 订单状态
	private String paymentPlace;		// 缴费地点
	private User user;		// 归属用户
	private String servantName;//考试名称
	private String orderCode; //订单号
	public String getServantName() {
		return servantName;
	}

	public void setServantName(String servantName) {
		this.servantName = servantName;
	}
	public CampusinfoServant() {
		super();
	}

	public CampusinfoServant(String id){
		super(id);
	}

	@Length(min=1, max=64, message="考试名称长度必须介于 1 和 64 之间")
	public String getServantId() {
		return servantId;
	}

	public void setServantId(String servantId) {
		this.servantId = servantId;
	}
	
	@Length(min=1, max=255, message="考试费用长度必须介于 1 和 255 之间")
	public String getPayment() {
		return payment;
	}

	public void setPayment(String payment) {
		this.payment = payment;
	}
	
	@Length(min=0, max=64, message="支付方式长度必须介于 0 和 64 之间")
	public String getPaymentMethod() {
		return paymentMethod;
	}

	public void setPaymentMethod(String paymentMethod) {
		this.paymentMethod = paymentMethod;
	}
	
	@Length(min=1, max=1, message="订单状态长度必须介于 1 和 1 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	@Length(min=0, max=255, message="缴费地点长度必须介于 0 和 255 之间")
	public String getPaymentPlace() {
		return paymentPlace;
	}

	public void setPaymentPlace(String paymentPlace) {
		this.paymentPlace = paymentPlace;
	}
	
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	public String getOrderCode() {
		return orderCode;
	}

	public void setOrderCode(String orderCode) {
		this.orderCode = orderCode;
	}
}